package com.tuozixuan.api.impl;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.RestController;

import com.tuozixuan.api.DemoApi;

@RestController
public class DemoApiImpl implements DemoApi {

    public String hello(String msg, HttpServletRequest request) {
        String h = request.getHeader("X-Request-Foo");
        return "hello " + msg + " " + h;
    }
    
}
